<?php if($field['subtype'] == 'images'): ?>
  <ul class="field-media-images">
    <?php foreach($field['value'] as $value) include_component('field','images', array('field'=>$field, 'request'=>$request, 'file'=>$value)); ?>
  </ul>
<?php elseif($field['subtype'] == 'image'): ?> 
  <div class="field-media-image">
    <?php include_component('field','image', array('field'=>$field, 'request'=>$request, 'file'=>$field['value'])); ?>
  </div>
<?php endif; ?>